package com.example.qxfw.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.example.qxfw.common.entity.ny.Diseasedatalib;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/************************************
*
* @author : HuangDeYin Jolly
* @since : JDK 11
* @Date : 2023/7/5  星期三   23:21
* @description : 此类用来
***************************************/
@Mapper
public interface DiseasedatalibMapperXml extends BaseMapper<Diseasedatalib> {
    /**
     * delete by primary key
     * @param stationid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(@Param("stationid") String stationid, @Param("cropname") String cropname, @Param("type") String type, @Param("diseasesname") String diseasesname);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(Diseasedatalib record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(Diseasedatalib record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Diseasedatalib record);

    List<Diseasedatalib> selectDistinct(@Param("column") String column, @Param("cropname") String cropname);
}